package demo;

import java.io.IOException;

public class RunTimeDemo02 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Runtime run = Runtime.getRuntime();
		Process pro = null;
		try {
			pro = run.exec("notepad.exe");
		} catch (IOException e) {
		
			e.printStackTrace();
		}
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
	
			e.printStackTrace();
		}
		pro.destroy();

	}

}
